package link.gpt.service.impl;

import link.gpt.dao.StudentDao;
import link.gpt.pojo.Student;
import link.gpt.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version V1.0A
 * @uthor gpt
 * @Project holiday_task
 * @Package link.gpt.service.impl
 * @Description: ${TODO}
 * @Date 2021/10/7 16:27
 */
@Service
public class StudentServiceImpl implements StudentService {

   @Autowired
   private StudentDao studentDao;

   @Override
   public List<Student> findAllAndClass() {
      return studentDao.findAllAndClass();
   }

   @Override
   public int addStudent(Student student) {
      return studentDao.insertSelective(student);
   }
}
